package com.mctuoluo.mappay.vv;

import lk.vexview.api.VexViewAPI;
import lk.vexview.gui.VexGui;
import lk.vexview.gui.components.VexButton;
import lk.vexview.gui.components.VexComponents;
import lk.vexview.gui.components.VexText;
import org.bukkit.entity.Player;

import java.net.URL;
import java.util.Collections;

public class loadVV {

    public static void openMaps(String urls, int x, int y, int w, int h, int xs, int ys,Player player,String ss){
        VexGui v = new VexGui(urls,x,y,w,h,xs,ys);
        VexComponents vexComponents = new VexText(x-50,y+150,Collections.singletonList(ss));
        v.addComponent(vexComponents);

        VexViewAPI.openGui(player,v);

    }

}
